package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lxx
 * @email 1914264274@qq.com
 * @date 2022-03-08 11:28:16
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R listTree();

    void removeMenus(List<Long> asList);

    Long[] getCatelogFullPath(Long catelogId);

    List<CategoryEntity> getAllLevel1();

    Map<String, List<Catelog2Vo>> getLevel23Data();

    Map<String, List<Catelog2Vo>> getCatelogFromCache();
    Map<String, List<Catelog2Vo>> getLevel23DataWithSpringCache();
}

